import request from '@/utils/request'
import Qs from 'qs'
// 列表
export function recordTypeList (params) {
  return request({
    url: '/api/malfunction/admin/list',
    method: 'get',
    params
  })
}

export function addOrupdateRecordType (data) {
  return request({
    method:'post',
    data:Qs.stringify(data),
    url: '/api/malfunction/admin/add',
    headers:{'content-type': 'application/x-www-form-urlencoded'}
  })
}

export function deleteRecordType (params) {
  return request({
    method:'Delete',
    params,
    url: '/api/malfunction/admin/del',
  })
}

